class A:
    def __init__(self, *args, **kwargs):
        print("A")


class B:
    def __init__(self, *args, **kwargs):
        print("B")


class C(A, B):
    def __init__(self):
        print("C")


class D(A, B):
    def __init__(self, *args, **kwargs):
        print("D")


class E(C, D):
    def __init__(self):
        super().__init__()

if __name__ == "__main__":
    E()